﻿using System;
using System.Windows.Forms;
using System.Data;
using CXMLStudioIDE.Forms;
using CXMLStudioIDE.Common.Entities;

namespace CXMLStudioIDE.Views
{
    public interface IDataDictionaryView
    {
        #region Properties

        MainForm Parent { get; set; }
        BusinessEntity BusinessEntity { get; set; }
        string EntityName { get; set; }
        Int32 ContextualDefinitionID { get; set; }
        Int32 BusinessDefinitionID { get; set; }
        string Comments { get; set; }
        string HistoricComments { get; set; }
        string BusinessDefinition { get; set; }
        string CommentBodyText { get; set; }
        string BusinessDefBodyText { get; set; }
        DataSet ds_BE_datadictionary { get; set; }
        string BDBodyHtml { get; set; }
        bool HasChanged { get; set; }
        bool BDEditEnabled { get; set; }
        bool CommentEditEnabled { get; set; }
        bool BDSaveEnabled { get; set; }
        bool CommentSaveEnabled { get; set; }

        #endregion

        #region Events
        event FormClosingEventHandler OnFormClosing;
        #endregion

        #region Methods
        void ClearEditors();
        void AddKeyWord(string sZ_Item);
        void WriteEmtpyBDEditor();
        void WriteEmptyHCEditor();
        void UpdateDataDictionary(BusinessEntity be);
        void Save(bool SaveAndClose);
        void SaveBusinessDefinition();
        void SaveComment();
        void RemoveEmptyBDLinks();
        void RemoveEmptyCommentLinks();
        #endregion
    }
}
